﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#define VERSION "0.4"


#include <QMainWindow>
#include <QDebug>
#include <QProcess>
#include <QUrl>
#include <QNetworkReply>
#include <QNetworkCookie>
#include <QNetworkCookieJar>
#include <QFileDialog>
#include <QFile>
#include <QMessageBox>

#include <QFile>
#include <QDomDocument>
#include <QPushButton>
#include <QProcess>
#include <QHash>
#include <QDesktopWidget>

#include <QMenu>
#include <QAction>
#include <QSystemTrayIcon>
namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
public slots:
    void setHost(QString,bool);
    void setHosts();
    void setHostsIcon();
    void iconActivated(QSystemTrayIcon::ActivationReason reason);
private:
    QHash<QString ,QString> settings;
    Ui::MainWindow *ui;
    QDomDocument *doc;

    void createActions();
    void createTrayIcon();

    QAction *restoreAction;
    QAction *quitAction;

    QSystemTrayIcon *trayIcon;
    QMenu *trayIconMenu;
private slots:
};

#endif // MAINWINDOW_H
